<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin</title>
        <link rel='stylesheet' href='../css/reset.css'/>
        <link rel='stylesheet' href='../css/960.css'/>
        <link rel='stylesheet' href='css/style.css'/>
        <script src="../Scripts/jquery-1.8.1.min.js" type="text/javascript"></script>
        <script src="../Scripts/DolphJS.js" type="text/javascript"></script>
        <!-- Load TinyMCE -->
        <script type="text/javascript" src="tiny_mce/jquery.tinymce.js"></script>
        <!-- /TinyMCE -->
    </head>
 
    <body>
               <?php
               include "processing/contactInfo.php";
error_reporting(E_ALL^E_NOTICE);


if($_REQUEST["youtube"]!="")
$youtube = $_REQUEST["youtube"];

if($_REQUEST["facebook"]!="")
$facebook = $_REQUEST["facebook"];

if($_REQUEST["twitter"]!="")
$twitter = $_REQUEST["twitter"];

if($_REQUEST["linkedin"]!="")
$linkedin = $_REQUEST["linkedin"];

if($_REQUEST["google"]!="")
$google = $_REQUEST["google"];

if($_REQUEST["mail"]!="")
$mail = $_REQUEST["mail"];

if($_REQUEST["yahoo"]!="")
$yahoo = $_REQUEST["yahoo"];

if($_REQUEST["skype"]!="")
$skype = $_REQUEST["skype"];

if($_REQUEST["phone"]!="")
$phone = $_REQUEST["phone"];

if($_REQUEST["mobile"]!="")
$mobile = $_REQUEST["mobile"];

$ourFileName = "processing/contactInfo.php";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");

$string = "<?php
"."$"."youtube = '$youtube';
"."$"."facebook = '$facebook';
"."$"."twitter = '$twitter';
"."$"."linkedin = '$linkedin';
"."$"."google = '$google';
"."$"."mail = '$mail';
"."$"."yahoo = '$yahoo';
"."$"."skype = '$skype';
"."$"."phone = '$phone';
"."$"."mobile = '$mobile';
?>";
fwrite($ourFileHandle, $string);
fclose($ourFileHandle);

$ourFileName = "../socialcontact.php";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");

$string = "<link rel='stylesheet' href='css/socialcontact.css'/>
<ul class='social'>
        
        <li><a class='youtube' href='http://youtube.com/user/".$youtube."'><span>Youtube</span></a></li>
        <li><a class='facebook' href='http://facebook.com/".$facebook."'><span>Facebook</span></a></li>
        <li><a class='twitter' href='http://twitter.com/".$twitter."'><span>Twitter</span></a></li>
        <li><a class='linkedin' href='http://vn.linkedin.com/pub/".$linkedin."'><span>Linked In</span></a></li>
        <li><a class='google' href='https://plus.google.com/".$google."'><span>Google Plus</span></a></li>
        <li><a class='mail' href='mailto:".$mail."'><span>Mail</span></a></li>
        <li><a class='yahoo' href='ymsgr:sendim?".$yahoo."'><span><img border='0' src='http://presence.msg.yahoo.com/online?u=".$yahoo."&m=g&t=2&l=us'></span></a></li>
        <li><a class='skype' href='skype:".$skype."?chat'><span><img border='0' src='http://mystatus.skype.com/smallclassic/".$skype."'></span></a></li>

        <li id='h1'><h1>Phone : ".$phone."</h1>   
        <h1>Mobile : ".$mobile."</h1></li>        
</ul>";
fwrite($ourFileHandle, $string);
fclose($ourFileHandle);
?>
        <div id ="container" class="container_12">
            
            <div id="banner" class="grid_12">
                    <img src='../img/logo.png'>
            </div><!--end banner wrap-->
            
            <div id="body" class="grid_12">
                <div id="siteBar" class="grid_4">
                    <?php
                        include 'siteBar.php';
                    ?>
                </div><!--end siteBar wrap -->
                <div id="main" class="grid_7">
                    <div class="section">
                        <h2>Hiệu chỉnh Formula</h2>
                        <form method="post">
                            <ul>
                                <li class="listitem">
                                    <div class="row">
                                        <label for="txtname">Youtube:</label>
                                        <input class="textbox" type="text" name="youtube" value="<?php echo $youtube; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Facebook:</label>
                                        <input class="textbox" type="text" name="facebook" value="<?php echo $facebook; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Twitter:</label>
                                        <input class="textbox" type="text" name="twitter" value="<?php echo $twitter; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Linkedin:</label>
                                        <input class="textbox" type="text" name="linkedin" value="<?php echo $linkedin; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Google:</label>
                                        <input class="textbox" type="text" name="google" value="<?php echo $google; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Mail:</label>
                                        <input class="textbox" type="text" name="mail" value="<?php echo $mail; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Yahoo messenger:</label>
                                        <input class="textbox" type="text" name="yahoo" value="<?php echo $yahoo; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Skype:</label>
                                        <input class="textbox" type="text" name="skype" value="<?php echo $skype; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Phone:</label>
                                        <input class="textbox" type="text" name="phone" value="<?php echo $phone; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Mobile:</label>
                                        <input class="textbox" type="text" name="mobile" value="<?php echo $mobile; ?>" maxlength="255"/>
                                    </div>
                                                                        
                                </li>
                                
                                <li class="listitem">
                                    <div class="row rightalign">
                                        <input name="update" type="submit" value="Cập nhật"/>
                                    </div>
                                    <div id="warning"></div>
                                </li>    
                            </ul>    
                        </form>
                    </div>
                </div><!--end main wrap -->
                
            </div><!--end main wrap-->
            
            <div id="footer" class="grid_12">
            </div><!--end footer wrap-->
        </div><!--end container wrap-->
    </body>
</html>